package javaClassDesign.instanceof1.interfaces;

public class Test {

	public static void main(String[] args) {
		AAA a = new AAA();
		BBB b = new BBB();

		System.out.println("b instanceof T1: " + (b instanceof T1));
		System.out.println("b instanceof AAA: " + (b instanceof AAA));

		String cad1 = "hola";

		stringCambiantes(cad1, cad1 = "1", cad1 = "2");

	}

	private static void stringCambiantes(String a, String b, String c) {
		System.out.println("a: " + a + ", b: " + b + ", c: " + c);

	}

	public void igualNull() {
		// TODO Auto-generated method stub
		System.out.println(this == null);
		System.out.println(null == this);
	}
}

interface T1 {
}

interface T2 {
}

class AAA implements T1, T2 {
}

class BBB extends AAA implements T2 {
}